package carBuddy.veneroso.it;

import java.util.ArrayList;
import java.util.HashMap;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListAdapter;
import android.widget.SimpleAdapter;

public class CarBuddy extends Activity {
	
	ArrayList<HashMap<String,String>> list = new ArrayList<HashMap<String,String>>();

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
    	
    	HashMap<String, String> hm = new HashMap<String, String>();
    	
    	hm.put("alfa", "beta");
         
      // new ArrayAdapter<String>(this, R.id.ListView01, new String [] { "ciao" } );
        list.add(hm);
        
        ListAdapter adapter = new SimpleAdapter( 
				this, 
				list,
				R.layout.main_item_two_line_row,
				new String[] { "line1","line2" },
				new int[] { 1, 2 }  );
        setContentView(R.layout.main);
    }
    
	public void doNothing(View button)
	{
	}
}